package com.reason.common.exception;

import com.reason.common.pojo.Result;
import com.reason.common.pojo.StatusCode;

/**
 * @author
 * @date 2020/7/2 9:24 上午
 */
public class HWException extends RuntimeException {

    private Result result;

    public HWException(String message) {
        this.result = new Result(false, StatusCode.ERROR, message);
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }
}
